/**
 * 结果数据 复制到 https://www.json.cm/json2excel/ 然后导出csv，之后重命名文件就行
 */

const sco = {
  "@ant-design/colors": "^6.0.0",
  "@types/ramda": "^0.27.66",
  "ant-design-vue": "^3.2.20",
  "axios": "^0.21.4",
  "crypto-js": "^4.1.1",
  "dayjs": "^1.11.9",
  "docx-preview": "^0.3.0",
  "echarts": "^5.4.3",
  "less": "^4.1.3",
  "lodash-es": "^4.17.21",
  "perfect-scrollbar": "^1.5.5",
  "pinia": "^2.1.4",
  "qs": "^6.12.0",
  "store2": "^2.14.2",
  "uuid": "^8.3.2",
  "vite-plugin-qiankun": "^1.0.15",
  "vue": "^3.3.0",
  "vue-router": "^4.2.4",
  "@types/node": "^20.12.7",
  "@typescript-eslint/eslint-plugin": "^4.33.0",
  "@typescript-eslint/parser": "^4.33.0",
  "@vitejs/plugin-vue": "^1.10.2",
  "@vitejs/plugin-vue-jsx": "^1.3.10",
  "@vue/compiler-sfc": "^3.3.4",
  "@vue/test-utils": "^2.4.5",
  "babel-plugin-import": "^1.13.6",
  "cypress": "^13.13.3",
  "eslint": "^7.32.0",
  "eslint-config-prettier": "^8.8.0",
  "eslint-plugin-prettier": "^3.4.1",
  "eslint-plugin-vue": "^7.20.0",
  "jsdom": "^24.0.0",
  "prettier": "^2.8.8",
  "typescript": "^4.9.5",
  "vite": "^2.9.18",
  "vite-plugin-inspect": "^0.4.3",
  "vitest": "^1.5.0",
  "vue-tsc": "^0.0.24"
};

const iam = {
  "@antv/g6": "^3.8.2",
  "@antv/layout": "^0.3.13",
  "@antv/x6": "^1.34.11",
  "@superset-ui/embedded-sdk": "0.1.2",
  "ag-grid-community": "^28.0.2",
  "ag-grid-vue": "^28.0.0",
  "ant-design-vue": "^1.7.2",
  "axios": "0.26.0",
  "bcryptjs": "^2.4.3",
  "core-js": "^3.23.4",
  "cron-expression-validator": "^1.0.20",
  "crypto-browserify": "^3.12.0",
  "crypto-js": "^4.1.1",
  "dayjs": "^1.9.6",
  "echarts": "^5.0.2",
  "echarts-wordcloud": "^2.0.0",
  "element-resize-detector": "^1.2.4",
  "element-ui": "^2.15.3",
  "gsap": "^3.9.1",
  "ip-regex": "^5.0.0",
  "jsencrypt": "^3.2.1",
  "lodash-es": "^4.17.21",
  "moment": "^2.29.4",
  "monaco-editor": "^0.33.0",
  "monaco-editor-webpack-plugin": "^7.0.1",
  "nprogress": "^0.2.0",
  "parallax-js": "^3.1.0",
  "pinia": "^2.0.13",
  "qiankun": "^2.10.16",
  "screenfull": "^5.0.2",
  "script-loader": "^0.7.2",
  "store2": "^2.14.1",
  "tinymce": "5.4.2",
  "uuid": "^8.3.2",
  "vue": "^2.7.3",
  "vue-clipboard2": "^0.3.3",
  "vue-draggable-resizable": "^2.3.0",
  "vue-grid-layout": "^2.3.7",
  "vue-i18n": "^8.28.2",
  "vue-property-decorator": "^8.0.0",
  "vue-router": "^3.2.0",
  "vue-seamless-scroll": "^1.1.21",
  "vue2-ace-editor": "0.0.15",
  "vuedraggable": "^2.24.3",
  "@babel/core": "^7.12.16",
  "@babel/eslint-parser": "^7.12.16",
  "@vue/babel-helper-vue-jsx-merge-props": "^1.2.1",
  "@vue/babel-preset-jsx": "^1.2.4",
  "@vue/cli-plugin-babel": "~5.0.8",
  "@vue/cli-plugin-eslint": "~5.0.8",
  "@vue/cli-plugin-router": "~5.0.8",
  "@vue/cli-service": "~5.0.8",
  "@vue/eslint-config-prettier": "^6.0.0",
  "babel-plugin-component": "^1.1.1",
  "browserslist": "^4.20.2",
  "eslint": "^7.32.0",
  "eslint-config-prettier": "^8.3.0",
  "eslint-plugin-prettier": "^4.0.0",
  "eslint-plugin-vue": "^8.0.3",
  "less": "^4.1.3",
  "less-loader": "^11.0.0",
  "prettier": "^2.4.1",
  "speed-measure-webpack-plugin": "^1.5.0",
  "vue-template-compiler": "^2.6.11",
  "webpack-bundle-analyzer": "^4.1.0"
};

const asset = {
  "@vueuse/core": "^10.1.2",
  "axios": "^0.18.0",
  "bcryptjs": "2.4.3",
  "bpmn-js": "^8.8.3",
  "comlink-loader": "2.0.0",
  "core-js": "^3.31.0",
  "d3-dispatch": "^3.0.1",
  "d3-drag": "^3.0.0",
  "d3-force": "^3.0.0",
  "d3-selection": "^3.0.0",
  "d3-zoom": "^3.0.0",
  "element-ui": "2.15.13",
  "exceljs": "4.3.0",
  "fusion-charts": "^1.4.59",
  "fusion-components": "^1.9.45",
  "fusion-utils": "^1.2.1",
  "identicon.js": "^2.3.2",
  "ipaddr.js": "^2.0.1",
  "js-base64": "^3.7.2",
  "jsencrypt": "^3.2.1",
  "lowdb": "^3.0.0",
  "nanoid": "^4.0.0",
  "netmask": "2.0.2",
  "validator": "^10.3.0",
  "vue": "^2.7.0",
  "vue-happy-bus": "^1.0.1",
  "vue-router": "^3.6.5",
  "vue-virtual-scroller": "1.1.2",
  "vuex": "^3.6.2",
  "@babel/eslint-parser": "^7.21.3",
  "@idss/eslint-config-vue": "^2.0.0",
  "@idss/git-commit-cli": "^1.0.6",
  "@vue/cli-plugin-babel": "^4.5.18",
  "@vue/cli-plugin-eslint": "^5.0.8",
  "@vue/cli-service": "^4.5.18",
  "@vue/eslint-config-standard": "^8.0.1",
  "add-asset-html-webpack-plugin": "^3.2.0",
  "babel-plugin-add-module-exports": "^1.0.0",
  "babel-plugin-transform-imports": "^2.0.0",
  "browserslist": "4.6.2",
  "caniuse-lite": "^1.0.30001230",
  "compression-webpack-plugin": "6.1.1",
  "cross-env": "^7.0.3",
  "cssnano": "^4.1.8",
  "eslint": "^8.36.0",
  "eslint-plugin-vue": "^9.9.0",
  "idss-project-base-info-webpack-plugin": "^1.1.8",
  "idss-webpack-dll-service": "^1.3.0",
  "jsonfile": "^5.0.0",
  "koa": "^2.6.2",
  "koa-bodyparser": "^4.2.1",
  "koa-router": "^7.4.0",
  "lint-staged": "^8.1.0",
  "postcss-import": "^12.0.1",
  "postcss-mixins": "^6.2.3",
  "postcss-preset-env": "^6.5.0",
  "precss": "^4.0.0",
  "svg-sprite-loader": "^6.0.6",
  "svgo-loader": "^3.0.0",
  "terser": "^4.8.0",
  "vue-loader": "~15.10.0",
  "vue-template-babel-compiler": "^1.0.6-0",
  "webpack-cli": "^4.9.1",
  "websocket": "^1.0.26"
};

const result = []

const setData = (data) => {
  for (const key in data) {
    if (Object.prototype.hasOwnProperty.call(data, key)) {
      const element = data[key];
      result.push({ name: key, version: element });
    }
  }
}

const d = [sco, iam, asset]
d.forEach(setData)
console.dir(result);